package db6;

public class TestCompany {
    public static void main(String[] args) {
        ColaEmployee[] c1=new ColaEmployee[]{
                new SalesEmployee("xiaoli",9,80,20),
                new SalariedEmployee("xiaozhang",12,5000),
                new HourlyEmployee("xiaoji",3,25,80)
        };
//        for (int i = 0; i <c1.length; i++) {
//            System.out.println("名字；"+c1[i].name+"工资；"+c1[i].getSalary(10));
//
//        }
        new Company().ff(c1);
    }
}
